home *** CD-ROM | disk | FTP | other *** search
- %%BeginFile: lw8_level2_basicimage-2.1
- /$j 10 dict dup
- begin
- /ImageType 1 def
- /MultipleDataSource F def
- end
- def
- /im_save Z
- /setupimageproc Z
- /polarity Z
- /smoothflag Z
- /bpc Z
- /ih Z
- /iw Z
- /datatype Z
- /xtraData Z
- /$zdump Z
- /$z Z
- /binarydataproc
- {
- currentfile
- }bd
- /asciidataproc
- {
- currentfile 0(%ADOeod)/SubFileDecode filter/ASCIIHexDecode filter
- }bd
- /rledataproc
- {
- currentfile/RunLengthDecode filter
- }bd
- /rlea85dataproc
- {
- currentfile/ASCII85Decode filter/RunLengthDecode filter
- }bd
- level3 dup startnoload
- /miascii
- {
- [
- currentfile dup
- $zdump
- /readhexstring cvx
- /pop cvx dup
- $z
- /readhexstring cvx
- /pop cvx
- ]cvx bind
- }bd
- /mibinary
- {
- [
- currentfile dup
- $zdump
- /readstring cvx
- /pop cvx dup
- $z
- /readstring cvx
- /pop cvx
- ]cvx bind
- }bd
- /mirle
- {
- [
- currentfile/RunLengthDecode filter dup
- $zdump
- /readstring cvx
- /pop cvx dup
- $z
- /readstring cvx
- /pop cvx
- ]cvx bind
- }bd
- /mirlea85
- {
- [
- currentfile/ASCII85Decode filter/RunLengthDecode filter dup
- $zdump
- /readstring cvx
- /pop cvx dup
- $z
- /readstring cvx
- /pop cvx
- ]cvx bind
- }bd
- dup endnoload not dup startnoload
- /mibinary/binarydataproc ld
- /miascii/asciidataproc ld
- /mirle/rledataproc ld
- /mirlea85/rlea85dataproc ld
- endnoload
- /:imsv{/im_save save store}bd
- /:f
- {
- /xtraData xs
- /datatype xs
- /setupimageproc{
- //binarydataproc
- //asciidataproc
- //rledataproc
- //rlea85dataproc
- {
- currentfile/ASCII85Decode filter
- }
- {
- currentfile/DCTDecode filter
- }
- {
- currentfile/ASCII85Decode filter/DCTDecode filter
- }
- {
- currentfile 4 dict dup begin/Columns iw def/Rows ih def/DamagedRowsBeforeError ih def/BlackIs1 T def end/CCITTFaxDecode filter
- }
- {
- currentfile/ASCII85Decode filter 4 dict dup begin/Columns iw def/Rows ih def/DamagedRowsBeforeError ih def/BlackIs1 T def end/CCITTFaxDecode filter
- }
- {
- currentfile 5 dict dup begin/K -1 def/Columns iw def/Rows ih def/DamagedRowsBeforeError ih def/BlackIs1 T def end/CCITTFaxDecode filter
- }
- {
- currentfile/ASCII85Decode filter 5 dict dup begin/K -1 def/Columns iw def/Rows ih def/DamagedRowsBeforeError ih def/BlackIs1 T def end/CCITTFaxDecode filter
- }
- {
- currentfile 5 dict dup begin/K 1 def/Columns iw def/Rows ih def/DamagedRowsBeforeError ih def/BlackIs1 T def end/CCITTFaxDecode filter
- }
- {
- currentfile/ASCII85Decode filter 5 dict dup begin/K 1 def/Columns iw def/Rows ih def/DamagedRowsBeforeError ih def/BlackIs1 T def end/CCITTFaxDecode filter
- }
- //mibinary
- //miascii
- //mirle
- //mirlea85
- }datatype get store
- {
- [1 0]
- }{
- [0 1]
- }ifelse
- /polarity xs
- /smoothflag xs
- concat
- xtraData
- {
- 0 0 1 1 rC
- }if
- /$z xs
- /bpc xs
- xtraData{4 add}if
- /ih xs
- /iw xs
- datatype 13 ge
- {
- /$z $z string store
- /$zdump iw 7 add 8 idiv string store
- }if
- $c setcolorspace
- }bd
- /:j{im_save restore}bd
- /mkimgmtx
- {
- xtraData
- {
- [Width 0 0 Height 4 sub 0 2]
- }{
- [Width 0 0 Height 0 0]
- }ifelse
- }bd
- /do1img
- {
- $j dup begin
- /Width iw def
- /Height ih def
- /Decode polarity def
- /ImageMatrix mkimgmtx def
- /DataSource setupimageproc def
- /BitsPerComponent 1 def
- /Interpolate smoothflag def
- end
- imagemask
- }bd
- /:g
- {
- 1 G
- 0
- 1 1 idtransform abs exch pop
- 1 1
- rF
- 0 G
- do1img
- }bd
- /:h
- {
- :Fx
- 0
- 1 1 idtransform abs exch pop
- 1 1
- rF
- :Fx
- do1img
- }bd
- /:i
- {
- :Fx
- do1img
- }bd
- level3
- dup startnoload
- /:hm/:h ld
- dup endnoload not dup startnoload
- /domskimage
- {
- 4 dict begin
- /ImageType 3 def
- /InterleaveType 2 def
- /MaskDict
- $j begin
- /Width iw def
- /Height ih def
- /ImageMatrix mkimgmtx def
- /BitsPerComponent 1 def
- /Decode[1 0]def
- /Interpolate smoothflag def
- currentdict
- end def
- MaskDict dup length 1 add dict copy
- begin
- /Decode exch def
- /BitsPerComponent bpc def
- /DataSource setupimageproc def
- /DataDict currentdict
- end
- def
- currentdict end
- image
- }bd
- /clraray Z
- /:hm
- {
- ]
- /clraray 2 array store
- clraray
- polarity 0 get
- 3 -1 roll put
- ]clraray
- polarity 1 get 3 -1 roll put
- [/Indexed $c 1{clraray exch get aload pop}bind]setcolorspace
- [1 0]
- domskimage
- }bd
- endnoload
- %%EndFile
-